package com.sihai.ehr.model.biz;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import com.sihai.core.BaseEntity;
import com.sihai.ehr.model.sys.InviteEnum;

/**
 * 招聘安排对象
 * 
 * @author Henry-PC
 * 
 */
@Entity
public class InviteArrange extends BaseEntity<Long> {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 2914393391229596579L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	/** 招聘职位申请ID */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "invite_apply_id")
	private InviteApply inviteApply;

	/** 招聘渠道 */
	private String channel;

	/** 招聘结果 */
	@Enumerated(EnumType.STRING)
	private InviteEnum inviteResult;

	/** 实际招聘人数 */
	private int completeNum;
	/** 备注 */
	private String remark;
	/** 1-删除，0-使用 */
	@Column(length = 1)
	private boolean cancel;

	@Override
	public Long getId() {
		// TODO Auto-generated method stub
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public InviteApply getInviteApply() {
		return inviteApply;
	}

	public void setInviteApply(InviteApply inviteApply) {
		this.inviteApply = inviteApply;
	}

	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public InviteEnum getInviteResult() {
		return inviteResult;
	}

	public void setInviteResult(InviteEnum inviteResult) {
		this.inviteResult = inviteResult;
	}

	public int getCompleteNum() {
		return completeNum;
	}

	public void setCompleteNum(int completeNum) {
		this.completeNum = completeNum;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public boolean getCancel() {
		return cancel;
	}

	public void setCancel(boolean cancel) {
		this.cancel = cancel;
	}

}
